<?php
namespace app\index\controller;

use app\index\model\CapitalFlow;
use think\Request;

class CapitalFlows extends Base
{
    private $CapitalFlow;
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->CapitalFlow = new CapitalFlow();
    }

    /** 资金流水记录
     * @return mixed
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function index()
    {
        $map= array();
        $key = input('get.key');
        $list = $this->CapitalFlow->query_list($map);
        $this->assign('key',$key);
        $this->assign('list',$list);
        return $this->fetch();
    }
}